import request from '@/utils/request'

// 获取所有站点
export function stationAllList(data) {
    return request({
        url: '/enterprise/station/allList',
        method: 'post'
    })
}
// 平台端获取所有站点
export function stationAllList1(data) {
    return request({
        url: '/admin/spectionPlan/getStationList ',
        method: 'post'
    })
}
// 获取状态
export function getStatus(data) {
    return request({
        url: '/admin/alarmStatistics/alarmStatusList',
        method: 'post',
        data
    })
}
// 获取级别
export function getLeval(data) {
    return request({
        url: '/admin/alarmStatistics/alarmLevelList',
        method: 'post',
        data
    })
}
// 报警查看表格操作--删除,确认，抢修，报修
export function policeOperate(data) {
    return request({
        url: '/admin/alarmStatistics/setStatus',
        method: 'post',
        data
    })
}
// 获取报警管理-报警查看数据
export function policeList(data) {
    return request({
        url: '/admin/alarmStatistics/getList',
        method: 'post',
        data
    })
}
// 获取报警管理-报警查看-批量操作
export function allChange(data) {
    return request({
        url: '/admin/alarmStatistics/batchOperate',
        method: 'post',
        data
    })
}
// 获取数据字典
export function getDictionary(data) {
    return request({
        url: '/admin/dictionary/allList',
        method: 'post',
        data
    })
}
// 获取数据字典
export function getDictionary1(data) {
    return request({
        url: '/admin/dataParamType/allList',
        method: 'post',
        data
    })
}
// 所有摄像 site_id
export function getCameraAllList(data) {
    return request({
        url: '/enterprise/videoArchives/allList',
        method: 'post',
        data
    })
}
// 分类文档列表 site_id
export function getFileAllList(data) {
    return request({
        url: '/enterprise/enterpriseGroup/allList',
        method: 'post',
        data
    })
}
// // 指标组 pid
export function getTarget(data) {
    return request({
        // url: '/admin/dataParamType/allList',
        url: '/enterprise/monitor/show',
        method: 'post',
        data
    })
}

// ================ 视频档案 ====================
// 添加视频档案
export function createVideoFile(data) {
    return request({
        url: '/enterprise/videoArchives/create',
        method: 'post',
        data
    })
}
// 删除视频档案
export function deleteVideoFile(data) {
    return request({
        url: '/enterprise/videoArchives/delete',
        method: 'post',
        data
    })
}
// 视频档案详情
export function detailVideoFile(data) {
    return request({
        url: '/enterprise/videoArchives/detail',
        method: 'post',
        data
    })
}
// 视频档案列表
export function videoFileList(data) {
    return request({
        url: '/enterprise/videoArchives/list',
        method: 'post',
        data
    })
}
// 编辑视频档案
export function updateVideoFile(data) {
    return request({
        url: '/enterprise/videoArchives/update',
        method: 'post',
        data
    })
}
// ================ 新增监控设备 ====================
// 监控设备列表
export function cameraList(data) {
    return request({
        url: '/enterprise/monitor/list',
        method: 'post',
        data
    })
}
// 新增监控设备
export function createCamera(data) {
    return request({
        url: '/enterprise/monitor/create',
        method: 'post',
        data
    })
}
// 编辑监控设备
export function updateCamera(data) {
    return request({
        url: '/enterprise/monitor/update',
        method: 'post',
        data
    })
}
// 监控设备详情
export function detailCamera(data) {
    return request({
        url: '/enterprise/monitor/detail',
        method: 'post',
        data
    })
}
// 删除监控设备
export function deleteCamera(data) {
    return request({
        url: '/enterprise/monitor/delete',
        method: 'post',
        data
    })
}
// -------------------  站点电价方案  --------------------
// 方案列表
export function QuoteList(data) {
    return request({
        url: '/enterprise/electricScheme/list',
        method: 'post',
        data
    })
}
// 新增方案
export function createQuote(data) {
    return request({
        url: '/enterprise/electricScheme/create',
        method: 'post',
        data
    })
}
// 编辑方案
export function updateQuote(data) {
    return request({
        url: '/enterprise/electricScheme/update',
        method: 'post',
        data
    })
}
// 方案详情
export function detailQuote(data) {
    return request({
        url: '/enterprise/electricScheme/detail',
        method: 'post',
        data
    })
}
// 删除方案
export function deleteQuote(data) {
    return request({
        url: '/enterprise/electricScheme/delete',
        method: 'post',
        data
    })
}